package de.muc.vanbeek.dao;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import de.muc.vanbeek.ba.CustomerLoaderBA;

public class ConsoleTestDriver {

	public static void main(String[] args) {

		try {

			ApplicationContext appCtx = new ClassPathXmlApplicationContext(
					"bean-config.xml");
			CustomerLoaderBA customerHsqlDao = (CustomerLoaderBA) appCtx
					.getBean("CustomerLoaderBA");
			
			System.out.println(customerHsqlDao.getAllCustomers());
			
		} catch (Exception e) {
			e.printStackTrace();
		}

	}
}
